A tile atlas is an image that contains several smaller images. Use a tile atlas to improve application framerate by decreasing the number of texture switches that your application must make during runtime.
To use a tile atlas:
Image | 布局宽度 (Layout Width) | 布局高度 (Layout Height) |
---|---|---|
40 | 31 | |
27 | 32 | |
26 | 29 | |
30 | 30 | |
38 | 31 | |
30 | 31 |
Image | X | Y |
---|---|---|
0 | 0 | |
40 | 0 | |
68 | 0 | |
0 | 32 | |
30 | 32 | |
68 | 29 |
You can use a tile atlas to show a different image for different states of a telltale. Create a 状态机 (State Manager) and in each state set the properties that change between the states, such as OffsetInTileAtlas and PrimaryColor. See 使用状态机 and 教程:创建组合仪表指示灯.